package com.xhqgov.manage.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class CONST {
    /**
     * 登录用户session
     */
    public static final String SESSION_KEY = "LOGIN_SESSION";

    /**
     * 请求方式 get
     */
    public static final String REQUEST_GET = "GET";
    /**
     * 请求方式 get
     */
    public static final String REQUEST_POST = "POST";

    @Value("${com.ding.url.gettoken}")
    private String tokenUrl;

    @Value("${com.ding.corpId}")
    private String corpId;

    @Value("${com.ding.corpSecret}")
    private String corpSecret;

    @Value("${com.ding.ssoSecret}")
    private String ssoSecret;

    /**
     * 免登陆时使用 返回的信息比较少
     */
    @Value("${com.ding.url.getuserinfo}")
    private String userInfoUrl;

    @Value("${com.ding.url.getaccesstoken}")
    private String accessTokenUrl;

    @Value("${com.ding.appkey}")
    private String appkey;

    @Value("${com.ding.appsecret}")
    private String appsecret;
    /**
     * 获取用户详细信息URL 返回信息全面
     */
    @Value("${com.ding.url.getuser}")
    private String userUrl;

    /**
     * 获取部门列表信息URL
     * @return
     */
    @Value("${com.ding.url.getDeptList}")
    private String deptListUrl;

    public String getDeptListUrl() {
        return deptListUrl;
    }

    public void setDeptListUrl(String deptListUrl) {
        this.deptListUrl = deptListUrl;
    }

    public String getUserUrl() {
        return userUrl;
    }

    public void setUserUrl(String userUrl) {
        this.userUrl = userUrl;
    }

    public String getAppkey() {
        return appkey;
    }

    public void setAppkey(String appkey) {
        this.appkey = appkey;
    }

    public String getAppsecret() {
        return appsecret;
    }

    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }

    public String getAccessTokenUrl() {
        return accessTokenUrl;
    }

    public void setAccessTokenUrl(String accessTokenUrl) {
        this.accessTokenUrl = accessTokenUrl;
    }

    public String getSsoSecret() {
        return ssoSecret;
    }

    public void setSsoSecret(String ssoSecret) {
        this.ssoSecret = ssoSecret;
    }

    public String getUserInfoUrl() {
        return userInfoUrl;
    }

    public void setUserInfoUrl(String userInfoUrl) {
        this.userInfoUrl = userInfoUrl;
    }

    public String getCorpId() {
        return corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

    public String getCorpSecret() {
        return corpSecret;
    }

    public void setCorpSecret(String corpSecret) {
        this.corpSecret = corpSecret;
    }

    public String getTokenUrl() {
        return tokenUrl;
    }

    public void setTokenUrl(String tokenUrl) {
        this.tokenUrl = tokenUrl;
    }
}
